<template>
  <!-- 图标区域 -->
  <div class="icons">
    <div class="icon-image-text" v-for="item in iconList" :key="item.id">
      <img class="icon-image" :src="item.url" />
      <div class="icon-text">
        <p>{{ item.desc }}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ['iconList'],
  data () {
    return {
    }
  }
}
</script>

<style lang="stylus" scoped>
@import '~styles/mixins.styl'
.icons {
  width:100%
  height: 50vw
  display: flex
  flex-wrap: wrap
}
.icon-image-text {
  width: 20%;
  height: 25vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
}
.icon-image {
  width: 65%
}
.icon-text {
  width: 100%
  display: flex
  justify-content: center
}
.icon-text p{
  ellipsis()
}
</style>
